package com.sc.VenusQueryBeta.contract.setting.change;

import com.hengjun.kingstar.sdk.base.BasePresenter;
import com.hengjun.kingstar.sdk.base.IBaseActivity;
import com.hengjun.kingstar.sdk.base.IBaseModel;
import com.sc.VenusQueryBeta.model.bean.home.ChangeNextBean;

import io.reactivex.Observable;

/**
 * Created by SC-02 on 2018/9/19.
 *  修改密码Contract(契约)接口
 */
public interface ChangeContract {
    abstract class ChangePresenter extends BasePresenter<IChangeModel,IChangeView>{
        public abstract void changeNext(String oldPassword,String newPassword,int registerIndex,String loginUserId);
    }
    interface IChangeModel extends IBaseModel{
        Observable<ChangeNextBean> changenext(String oldPassword, String newPassword, int registerIndex, String loginUserId);
    }
    interface IChangeView extends IBaseActivity{

        void showChangeNextSuccess(ChangeNextBean changeNextBean);

        void showNetworkError();
    }
}
